package me.leiusual.sharing.api.model.orderdetail

data class Model(
    val id: Int,
    val code: String,
    val orderStatus: String,
    val orderStatusStr: String,
    val deliveryStatus: String,
    val deliveryStatusStr: String,
    val deliveryTime: Any?,
    val payMode: String,
    val amount: Double,
    val payAmount: Double,
    val paidPointCoins: Double,
    val paidAmount: Any?,
    val paidFreight: Any?,
    val storeId: Int,
    val storeName: String,
    val memo: Any?,
    val description: Any?,
    val linkMan: String,
    val contactPhone: String,
    val fullAddress: String,
    val postcode: Any?,
    val orderDetails: List<OrderDetailX>
) {

  companion object {

    // 订单状态 UNPAID, PAYING, PAID, CANCELLED
    const val ORDER_STATUS_UNPAID = "UNPAID"        // 未支付
    const val ORDER_STATUS_PAYING = "PAYING"        // 支付中
    const val ORDER_STATUS_PAID = "PAID"            // 已支付
    const val ORDER_STATUS_CANCELLED = "CANCELLED"  // 已取消

    // 快递状态 NONE, PARTIALLY, CONFIRMING, CONFIRMED
    const val DELIVERY_STATUS_NONE = "NONE"             // 未发货
    const val DELIVERY_STATUS_PARTIALLY = "PARTIALLY"   // 部分发货
    const val DELIVERY_STATUS_CONFIRMING = "CONFIRMING" // 待签收
    const val DELIVERY_STATUS_CONFIRMED = "CONFIRMED"   // 已签收

    // 支付方式 FREE, JF_PAY, WX_PAY, ALI_PAY, COIN_PAY
  }
}